/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package replica.transaction;

import replica.transaction.TransactionStatus;

/**
 *
 * @author Elena
 */
public interface ReplicaEntityInterface 
{
    
    public static enum Expected {SERIAL_NUM_UNEXPECTED, STATUS_TYPE_UNEXPECTED, YES,LATE,NO,
        NOT_FOR_ME, //used by ReplicaManager when a FrontEnd asks for a list to another ReplicaManager
        MAYBE_REPLICATED_DECISION,   //when a ReplicaManager receives a decision (ABORT or COMMIT) by the FrontEnd
                                    //but it was not waiting for it (maybe the FrontEnd woke up in decision state
                                    //after a crash)
        WHAT_HAPPENED,
        LATE_READY                  //Quando il FrontEnd riceve un ready message da un
                                    //ReplicaManager relativo a un'operazione di cui ha 
                                    //gia' preso la decision (commit o abort)
    };
    
    
    
}
